/**
 * @author raymondlo
 */
var AAActionManager = require("./AAActionManager").AAActionManager;

exports.AASprite = GL2.Sprite.subclass({
/** @lends Animation.AASprite.prototype */

    classname: 'AASprite',
    
    initialize: function(){
    },
	
	runAction: function(action) {
		//console.log("zzzz:::: _moveToLift called"+action);
		AAActionManager.addAction(this, action);
	},
    
	stopAllActions: function() {
		//console.log("zzzz::: stopAllActions");
		AAActionManager.removeAllActionsFromTarget(this);
	},
	
    destroy: function($super){
		var animation = this.getAnimation();
        $super();
		if (animation) animation.destroy();
    },
    
});
